import {
	request
} from './http.js'

export function login(config) { //登录
	return request({
		url: '/mchUserInfo/login',
		method: 'post',
		data: config
	})
}

export function getOpenId(config) { //微信登录
	return request({
		url: '/open/getOpenId',
		method: 'post',
		data: config
	})
}

export function send(config) { //发送短信
	return request({
		url: '/sms/send',
		method: 'post',
		data: config
	})
}

export function checkVerCode(config) { //验证码验证
	return request({
		url: '/sms/checkVerCode',
		method: 'post',
		data: config
	})
}

export function mchUserAdd(config) { //用户新增 = 注册
	return request({
		url: '/mchUserInfo/mchUserAdd',
		method: 'post',
		data: config
	})
}

export function chPwdWithPhone(config) { //验证码修改密码
	return request({
		url: '/mchUserInfo/chPwdWithPhone',
		method: 'post',
		data: config
	})
}
export function queryList(params, data) { //进件商户列表展示--通过法人手机号验证查询
	return request({
		url: '/incomingMch/queryList',
		method: 'post',
		params,
		data
	})
}
export function userBindMch(config) { //用户绑定商户信息
	return request({
		url: '/mchUser/userBindMch',
		method: 'post',
		data: config
	})
}



// export function loadUserInfo(params) { //
// 	return request({
// 		url: '/mobile/login/loadUserInfo',
// 		method: 'get',
// 		data: params
// 	})
// }